{% extends 'learning_logs/base.html' %}
{% load bootstrap3 %}

{% block header %}
<h3><a href="{% url 'learning_logs:topic' topic.id %}">{{ topic }}</a></h3>
{% endblock header %}

{% block content %}	
	<h3>添加一个新的条目</h3>
	<form action="{% url 'learning_logs:new_entry' topic.id%}" method="POST" class="form">
		{% csrf_token %}
		{% bootstrap_form form %}
		{% buttons %}
		<button name="submit">添加一个新的条目</button>
		{% endbuttons %}
	</form>
{% endblock content %}